home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / buttons / selvb20 / semarks.frm < prev    next >
Text File  |  1995-06-15  |  13KB  |  445 lines

  1. VERSION 2.00
  2. Begin Form MarkDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Mark Demo"
  6.    ClientHeight    =   4545
  7.    ClientLeft      =   1215
  8.    ClientTop       =   1965
  9.    ClientWidth     =   8085
  10.    Height          =   4950
  11.    Left            =   1155
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MDIChild        =   -1  'True
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4545
  17.    ScaleWidth      =   8085
  18.    Top             =   1620
  19.    Width           =   8205
  20.    Begin SELECTOR Selector1 
  21.       Angle           =   210
  22.       AutoAlign       =   -1  'True
  23.       AutoAngle       =   -1  'True
  24.       AutoOffset      =   -1  'True
  25.       AutoOffsetDistance=   0
  26.       AutoOffsetStyle =   0  ' 0 - Circular 
  27.       AutoRadius      =   0.8
  28.       AutoStartAngle  =   210
  29.       AutoStopAngle   =   330
  30.       BackgroundColor =   &H00C0C0C0&
  31.       BevelInner      =   1  ' 1 - Raised
  32.       BevelOuter      =   2  ' 2 - Inset
  33.       BevelWidth      =   2
  34.       BorderType      =   1  ' 1 - Bevel
  35.       BorderWidth     =   2
  36.       Captions        =   SEMARKS.FRX:0000
  37.       FrameColor      =   &H00000000&
  38.       FrameScaleX     =   0
  39.       FrameScaleY     =   0
  40.       FrameStyle      =   0  ' 0 - None
  41.       Height          =   4185
  42.       Highlight       =   0   'False
  43.       HighlightColor  =   &H00000000&
  44.       KnobColor       =   &H00808080&
  45.       KnobOriginX     =   0
  46.       KnobOriginY     =   0
  47.       KnobRadius      =   0.6
  48.       KnobStyle       =   0  ' 0 - Cicular
  49.       KnobUserDefined =   ""
  50.       Left            =   180
  51.       LineDisplay     =   0   'False
  52.       LineInnerRadius =   0.4
  53.       LineThickness   =   1
  54.       MarkUserDefined =   "0,0,   0,1000,   500,700,   200,700,   200,0"
  55.       MouseControl    =   -1  'True
  56.       OutlineAlign    =   0  ' 0 - Left 
  57.       OutlineColor    =   &H00000000&
  58.       OutlineTitle    =   ""
  59.       OutlineWidth    =   0
  60.       Radius          =   0
  61.       TabIndex        =   31
  62.       Top             =   210
  63.       Value           =   0
  64.       Width           =   4065
  65.       XScale          =   0
  66.       YScale          =   0
  67.    End
  68.    Begin HScrollBar HScroll1 
  69.       Height          =   240
  70.       Index           =   2
  71.       Left            =   4380
  72.       Max             =   100
  73.       TabIndex        =   29
  74.       Top             =   2820
  75.       Width           =   3465
  76.    End
  77.    Begin TextBox Text1 
  78.       Height          =   1125
  79.       Left            =   4380
  80.       MultiLine       =   -1  'True
  81.       TabIndex        =   3
  82.       Top             =   3330
  83.       Width           =   3615
  84.    End
  85.    Begin Frame Frame3 
  86.       BackColor       =   &H00C0C0C0&
  87.       Caption         =   "Mark Color"
  88.       Height          =   1425
  89.       Left            =   6540
  90.       TabIndex        =   23
  91.       Top             =   60
  92.       Width           =   1215
  93.       Begin Label Colors 
  94.          BackColor       =   &H000080FF&
  95.          Height          =   225
  96.          Index           =   8
  97.          Left            =   270
  98.          TabIndex        =   4
  99.          Top             =   900
  100.          Width           =   225
  101.       End
  102.       Begin Label Colors 
  103.          BackColor       =   &H00FF00FF&
  104.          Height          =   225
  105.          Index           =   7
  106.          Left            =   750
  107.          TabIndex        =   10
  108.          Top             =   900
  109.          Width           =   225
  110.       End
  111.       Begin Label Colors 
  112.          BackColor       =   &H00FF0000&
  113.          Height          =   225
  114.          Index           =   6
  115.          Left            =   270
  116.          TabIndex        =   11
  117.          Top             =   660
  118.          Width           =   225
  119.       End
  120.       Begin Label Colors 
  121.          BackColor       =   &H0000FFFF&
  122.          Height          =   225
  123.          Index           =   5
  124.          Left            =   510
  125.          TabIndex        =   12
  126.          Top             =   900
  127.          Width           =   225
  128.       End
  129.       Begin Label Colors 
  130.          BackColor       =   &H0000FF00&
  131.          Height          =   225
  132.          Index           =   4
  133.          Left            =   750
  134.          TabIndex        =   13
  135.          Top             =   420
  136.          Width           =   225
  137.       End
  138.       Begin Label Colors 
  139.          BackColor       =   &H000000FF&
  140.          Height          =   225
  141.          Index           =   3
  142.          Left            =   750
  143.          TabIndex        =   14
  144.          Top             =   660
  145.          Width           =   225
  146.       End
  147.       Begin Label Colors 
  148.          BackColor       =   &H00FFFFFF&
  149.          Height          =   225
  150.          Index           =   2
  151.          Left            =   510
  152.          TabIndex        =   15
  153.          Top             =   420
  154.          Width           =   225
  155.       End
  156.       Begin Label Colors 
  157.          BackColor       =   &H00808080&
  158.          Height          =   225
  159.          Index           =   1
  160.          Left            =   510
  161.          TabIndex        =   16
  162.          Top             =   660
  163.          Width           =   225
  164.       End
  165.       Begin Label Colors 
  166.          BackColor       =   &H00000000&
  167.          Height          =   225
  168.          Index           =   0
  169.          Left            =   270
  170.          TabIndex        =   17
  171.          Top             =   420
  172.          Width           =   225
  173.       End
  174.    End
  175.    Begin Frame Frame2 
  176.       BackColor       =   &H00C0C0C0&
  177.       Caption         =   "Mark Style"
  178.       Height          =   1425
  179.       Left            =   5130
  180.       TabIndex        =   18
  181.       Top             =   60
  182.       Width           =   1365
  183.       Begin OptionButton Option2 
  184.          BackColor       =   &H00C0C0C0&
  185.          Caption         =   "User"
  186.          Height          =   225
  187.          Index           =   4
  188.          Left            =   90
  189.          TabIndex        =   21
  190.          Top             =   1110
  191.          Width           =   1005
  192.       End
  193.       Begin OptionButton Option2 
  194.          BackColor       =   &H00C0C0C0&
  195.          Caption         =   "Arrow"
  196.          Height          =   225
  197.          Index           =   3
  198.          Left            =   90
  199.          TabIndex        =   25
  200.          Top             =   900
  201.          Width           =   1005
  202.       End
  203.       Begin OptionButton Option2 
  204.          BackColor       =   &H00C0C0C0&
  205.          Caption         =   "Triangular"
  206.          Height          =   225
  207.          Index           =   2
  208.          Left            =   90
  209.          TabIndex        =   9
  210.          Top             =   690
  211.          Width           =   1215
  212.       End
  213.       Begin OptionButton Option2 
  214.          BackColor       =   &H00C0C0C0&
  215.          Caption         =   "Circular"
  216.          Height          =   225
  217.          Index           =   1
  218.          Left            =   90
  219.          TabIndex        =   20
  220.          Top             =   480
  221.          Width           =   1095
  222.       End
  223.       Begin OptionButton Option2 
  224.          BackColor       =   &H00C0C0C0&
  225.          Caption         =   "None"
  226.          Height          =   225
  227.          Index           =   0
  228.          Left            =   90
  229.          TabIndex        =   19
  230.          Top             =   270
  231.          Width           =   1125
  232.       End
  233.    End
  234.    Begin HScrollBar HScroll1 
  235.       Height          =   240
  236.       Index           =   1
  237.       Left            =   4380
  238.       Max             =   100
  239.       TabIndex        =   5
  240.       Top             =   2340
  241.       Width           =   3465
  242.    End
  243.    Begin HScrollBar HScroll1 
  244.       Height          =   240
  245.       Index           =   0
  246.       Left            =   4380
  247.       Max             =   100
  248.       TabIndex        =   0
  249.       Top             =   1860
  250.       Width           =   3465
  251.    End
  252.    Begin Label Label2 
  253.       Alignment       =   2  'Center
  254.       AutoSize        =   -1  'True
  255.       BackStyle       =   0  'Transparent
  256.       Caption         =   " "
  257.       Height          =   195
  258.       Index           =   6
  259.       Left            =   7680
  260.       TabIndex        =   1
  261.       Top             =   2640
  262.       Width           =   120
  263.    End
  264.    Begin Label Label1 
  265.       AutoSize        =   -1  'True
  266.       BackStyle       =   0  'Transparent
  267.       Caption         =   "Mark Width"
  268.       Height          =   195
  269.       Index           =   2
  270.       Left            =   4380
  271.       TabIndex        =   30
  272.       Top             =   2610
  273.       Width           =   990
  274.    End
  275.    Begin Label Label1 
  276.       AutoSize        =   -1  'True
  277.       BackStyle       =   0  'Transparent
  278.       Caption         =   "Mark Shape: (x,y pair list)"
  279.       Height          =   195
  280.       Index           =   4
  281.       Left            =   4380
  282.       TabIndex        =   28
  283.       Top             =   3090
  284.       Width           =   2190
  285.    End
  286.    Begin Label Label2 
  287.       Alignment       =   2  'Center
  288.       AutoSize        =   -1  'True
  289.       BackStyle       =   0  'Transparent
  290.       Caption         =   " "
  291.       Height          =   195
  292.       Index           =   5
  293.       Left            =   1890
  294.       TabIndex        =   6
  295.       Top             =   3450
  296.       Width           =   120
  297.    End
  298.    Begin Label Label2 
  299.       Alignment       =   2  'Center
  300.       AutoSize        =   -1  'True
  301.       BackStyle       =   0  'Transparent
  302.       Caption         =   " "
  303.       Height          =   195
  304.       Index           =   4
  305.       Left            =   1950
  306.       TabIndex        =   26
  307.       Top             =   3840
  308.       Width           =   90
  309.    End
  310.    Begin Label Label2 
  311.       Alignment       =   2  'Center
  312.       AutoSize        =   -1  'True
  313.       BackStyle       =   0  'Transparent
  314.       Caption         =   " "
  315.       Height          =   195
  316.       Index           =   3
  317.       Left            =   1860
  318.       TabIndex        =   22
  319.       Top             =   3450
  320.       Width           =   210
  321.    End
  322.    Begin Label Label2 
  323.       Alignment       =   2  'Center
  324.       AutoSize        =   -1  'True
  325.       BackStyle       =   0  'Transparent
  326.       Caption         =   " "
  327.       Height          =   195
  328.       Index           =   2
  329.       Left            =   5850
  330.       TabIndex        =   24
  331.       Top             =   1830
  332.       Width           =   120
  333.    End
  334.    Begin Label Label2 
  335.       Alignment       =   2  'Center
  336.       AutoSize        =   -1  'True
  337.       BackStyle       =   0  'Transparent
  338.       Caption         =   " "
  339.       Height          =   195
  340.       Index           =   1
  341.       Left            =   7680
  342.       TabIndex        =   8
  343.       Top             =   2160
  344.       Width           =   120
  345.    End
  346.    Begin Label Label1 
  347.       AutoSize        =   -1  'True
  348.       BackStyle       =   0  'Transparent
  349.       Caption         =   "Mark Outer Radius"
  350.       Height          =   195
  351.       Index           =   1
  352.       Left            =   4380
  353.       TabIndex        =   7
  354.       Top             =   2130
  355.       Width           =   1605
  356.    End
  357.    Begin Label Label1 
  358.       AutoSize        =   -1  'True
  359.       BackStyle       =   0  'Transparent
  360.       Caption         =   "Mark Inner Radius"
  361.       Height          =   195
  362.       Index           =   0
  363.       Left            =   4380
  364.       TabIndex        =   2
  365.       Top             =   1650
  366.       Width           =   1575
  367.    End
  368.    Begin Label Label2 
  369.       Alignment       =   2  'Center
  370.       AutoSize        =   -1  'True
  371.       BackStyle       =   0  'Transparent
  372.       Caption         =   " "
  373.       Height          =   195
  374.       Index           =   0
  375.       Left            =   7680
  376.       TabIndex        =   27
  377.       Top             =   1680
  378.       Width           =   90
  379.    End
  380. End
  381. Sub Colors_Click (index As Integer)
  382.  
  383.     Selector1.MarkColor = colors(index).BackColor
  384.  
  385. End Sub
  386.  
  387. Sub Form_Load ()
  388.  
  389.     hscroll1(0) = Selector1.MarkInnerRadius * 100
  390.     hscroll1(1) = Selector1.MarkOuterRadius * 100
  391.     hscroll1(2) = Selector1.MarkWidth * 100
  392.     option2(Selector1.MarkStyle) = True
  393.     text1 = Selector1.MarkUserDefined
  394.  
  395.     For i% = 0 To 2
  396.         label2(i%) = hscroll1(i%) / 100
  397.     Next
  398.  
  399. End Sub
  400.  
  401. Sub HScroll1_Change (index As Integer)
  402.  
  403.     Select Case index
  404.         Case 0
  405.             Selector1.MarkInnerRadius = hscroll1(0) / 100
  406.             label2(0) = hscroll1(0) / 100
  407.         Case 1
  408.             Selector1.MarkOuterRadius = hscroll1(1) / 100
  409.             label2(1) = hscroll1(1) / 100
  410.         Case 2
  411.             Selector1.MarkWidth = hscroll1(2) / 100
  412.             label2(2) = hscroll1(2) / 100
  413.     End Select
  414.  
  415. End Sub
  416.  
  417. Sub HScroll1_Scroll (index As Integer)
  418.  
  419.     Select Case index
  420.         Case 0
  421.             Selector1.MarkInnerRadius = hscroll1(0) / 100
  422.             label2(0) = hscroll1(0) / 100
  423.         Case 1
  424.             Selector1.MarkOuterRadius = hscroll1(1) / 100
  425.             label2(1) = hscroll1(1) / 100
  426.         Case 2
  427.             Selector1.MarkWidth = hscroll1(2) / 100
  428.             label2(2) = hscroll1(2) / 100
  429.     End Select
  430.  
  431. End Sub
  432.  
  433. Sub Option2_Click (index As Integer)
  434.  
  435.     Selector1.MarkStyle = index
  436.  
  437. End Sub
  438.  
  439. Sub Text1_Change ()
  440.     
  441.     Selector1.MarkUserDefined = text1
  442.  
  443. End Sub
  444.  
  445.